<template>
    <h3>{{ pList.title }}</h3>
    <div id="section">
        <!-- template-start -->
        <div class="blank"></div>
        <bTable :instance="pList"></bTable>
        <!-- template-end -->
    </div>
</template>

<script setup lang="ts">
import { NurseList } from "@b/index/nursing_appointment";
import bTable from "@/components/public/b_table.vue";
import { useRouter } from "vue-router";
/* import-and-register */

const pList = new NurseList();

const router = useRouter();
/* const-and-register */

pList.info = async (id: number) => {
    if (!id) return;
    router.push(`/nursing_appointment/info/today?id=${id}`)
};
/* event-and-register */
</script>